//
//  AreaCell.m
//  住房条件帅选器
//
//  Created by MB__Lee on 2018/5/16.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "AreaCell.h"

@interface AreaCell()

@property (weak, nonatomic) IBOutlet UILabel *districtLabel;



@end

@implementation AreaCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
//用于显示 区县
-(void)setDistrictModel:(ArDistrictModel *)districtModel{
    [super setDistrictModel:districtModel];
    self.districtLabel.text =  districtModel.name;
}
// 用于显示 热门区域 
-(void)setRegionModel:(ArRegionModel *)regionModel{
    [super setRegionModel:regionModel];
    self.districtLabel.text = regionModel.name;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    if (selected) {
        self.districtLabel.textColor  = MB_RGBA(63, 171, 250, 1.0);
    }else if (!selected){
        self.districtLabel.textColor = MB_RGBA(51, 51, 51, 1.0);
    }
        

    // Configure the view for the selected state
}

@end
